package com.ys.service.eKnowAi.impl;

import com.ys.entity.eKnowAi.EKnowChatLog;
import com.ys.mapper.eKnowAi.EKnowChatLogMapper;
import com.ys.service.eKnowAi.EKnowChatLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("eKnowChatLogService")
public class EKnowChatLogServiceImpl implements EKnowChatLogService {

	@Autowired
	private EKnowChatLogMapper eKnowChatLogMapper;


	@Override
	public int add(EKnowChatLog eKnowChatLog) {
		eKnowChatLog.setStatus(1);
		int result = eKnowChatLogMapper.insert(eKnowChatLog);
		return result;
	}


	@Override
	public int update(EKnowChatLog eKnowChatLog) {
		eKnowChatLog.setStatus(1);
		int result = eKnowChatLogMapper.update(eKnowChatLog);
		return result;
	}


}
